import request from '@/utils/http'

// 获取数据表列表
export function fetchTablesList(params: any) {
  return request.get({
    url: '/common.tables/list',
    params
  })
}
//删除/清理数据表
export function deleteTablesdApi(data: { ids: string[]; type: number }) {
  return request.post({
    url: '/common.tables/delete',
    data
  })
}
// 添加SQL语句
export function sqlTablesApi(data: any) {
  return request.post({
    url: '/common.tables/sql',
    data
  })
}
